from flask_sqlalchemy import SQLAlchemy
db = SQLAlchemy()

class RatingCountTop(db.Model):
    __tablename__="rating_count_top"

    movieId = db.Column(db.String(20),primary_key=True)
    ratingCount = db.Column(db.Integer)
    ratingSum = db.Column(db.Float)
#     数据更新的时间
    uptime = db.Column(db.String(30))

class Movies(db.Model):
    __tablename__="movies"
    movieId = db.Column(db.String(10),primary_key=True)
    title = db.Column(db.String(400))
    genres = db.Column(db.String(100))